import axios from '@/utils/axios'
import { message } from 'antd'
import { ResponseProps } from '../types'

export const getInfo = async params => {
  try {
    const res: ResponseProps = await axios.get(
      `/api/user/get-account-info`,
      params
    )
    if (res.code === 200) {
      message.success(res.msg)
      return res.data
    }
  } catch (e) {
    console.log(e)
  }
}
